<div id="modelList" th:fragment="model_list" xmlns:th="http://www.thymeleaf.org">
    <table cellpadding="0" cellspacing="0" border="0"
           class="responsive  display table table-bordered dataTable" width="100%"
           id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
        <thead>
        <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-sort="ascending" aria-label="序号: activate to sort column descending">
                序号
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="模型名称: activate to sort column ascending">模型名称
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="行业: activate to sort column ascending">行业
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="场景: activate to sort column ascending">场景
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="上线状态: activate to sort column ascending">上线状态
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="使用人数: activate to sort column ascending">使用人数
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="综合评分: activate to sort column ascending">综合评分
            </th>
            <th class="sorting" role="columnheader" tabindex="0"
                aria-controls="DataTables_Table_0" rowspan="1" colspan="1"
                aria-label="操作: activate to sort column ascending">操作
            </th>
        </tr>
        </thead>

        <tbody role="alert" aria-live="polite" aria-relevant="all" th:unless="${#lists.isEmpty(models)}">
        <tr th:each="model,stat: ${models}" class="gradeX odd">
            <input type="hidden" th:value="${model.id}" id="modelId"/>
            <td th:text="${stat.index+1}"></td>
            <td th:text="${model.modelName}"></td>
            <td th:text="${model.modelIndustry}"></td>
            <td th:text="${model.modelScene}"></td>
            <td th:text="${model.modelStateName}"></td>
            <td></td>
            <td th:text="${model.modelScore}"></td>
            <td class=" ">
                <a href="javascript:;" onclick="edite(this,'/modelController/info_model.html')" th:value="${model.id}" class="btn-success btn btn-mini">查看</a>
                <a href="javascript:;"  th:if="${model.modelState=='10003'}" class="btn-warning btn btn-mini "  onclick="examine(this)" th:value="${model.id}"><input type="hidden"  th:value="${model.id}"></input>审核</a>
                <a href="javascript:;"  th:if="${model.modelState=='10002'}" class="btn-warning btn btn-mini "  onclick="upAdown(this)" th:value="${model.modelState}"><input type="hidden"  th:value="${model.id}"></input>下线</a>
                <!--<a href="javascript:;"  th:if="${model.modelState=='10001'}" onclick="edite(this,'/modelController/edite_model.html')" th:value="${model.id}" class="btn-success btn btn-mini">编辑</a>-->
                <a href="javascript:;"  th:if="${model.modelState=='10002'}" onclick="edite(this,'/modelController/model_comment.html')" th:value="${model.id}" class="btn-success btn btn-mini">评价管理</a>
            </td>
        </tr>
        </tbody>
        <tbody role="alert" aria-live="polite" aria-relevant="all" th:if="${#lists.isEmpty(models)}">
        <tr>
            <td colspan="7">没有符合查询条件的记录</td>
        </tr>
        </tbody>
    </table>
    <input id="pageAllCount" type="hidden" th:value="${totalSize}"/>
</div>